package binaryday01;

public class Demo04 {
    public static void main(String[] args) {
        int n =-1;
        int m = n>>>1;
        int k =n>>>2;
        int g=n>>>8;
        int b3 = (n>>>8)&0xff;
        int b2 = (n>>>16)&0xff;
        int b1 = (n>>>24)&0xff;
        System.out.println(n);
        System.out.println(0b11111111);
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));
        System.out.println(Integer.toBinaryString(g));
        System.out.println(Integer.toBinaryString(b3));
        System.out.println(Integer.toBinaryString(b2));
        System.out.println(Integer.toBinaryString(b1));
    }
}
